package com.avic.modules.mapping.service;

import com.avic.common.service.BaseService;
import com.avic.modules.mapping.domain.DataMapping;
import com.avic.modules.mapping.service.dto.DataMappingQueryCriteria;

import java.util.List;
import java.util.Map;

/**
 * @author zhangzikang 设备点位表
 * @date 2022-08-14
 */
public interface DataMappingService extends BaseService<DataMapping> {

    /**
     * 查询某个设备下所有点位
     * @param equipId
     * @return
     */
    List<DataMapping> selectEquipMapping(String equipId,Long categoryId);
    /**
     * 查询某个设备下所有点位
     * @param criteria
     * @return
     */
    Map<String, Object> selectDataMapping(DataMappingQueryCriteria criteria);

    /**
     * 修改点位信息
     * @param criteria
     */
    void eatDataMapping(DataMapping criteria);

    /**
     * 查询所以运行点位
     * @return
     */
    List<DataMapping> selectRunningDataMapping(DataMappingQueryCriteria criteria);
}
